package com.jintian.smart.base.api.security.provider;

import com.jintian.smart.base.api.security.constant.LoginLogResultEnum;
import com.jintian.smart.base.api.security.entity.LoginLogEntity;
import com.jintian.smart.base.api.security.view.LoginLogVO;
import com.jintian.smart.kernel.core.enumeration.UserTypeEnum;

public interface ILoginLogProvider {
    /**
     * 查询上一个登录记录
     */
    LoginLogVO queryLastByUserId(Long userId, UserTypeEnum userTypeEnum, LoginLogResultEnum loginLogResultEnum);

    /**
     * 添加日志
     */
    void log(LoginLogEntity loginLogEntity);
}
